﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Odbc;
using System.Configuration;
//using System.Data.OracleClient;
using Oracle.DataAccess.Client;

namespace SilverlightOracle.Web
{
    public class Conn
    {
        private string strconn = "";
        public OracleConnection connect()
        {
            strconn = "User Id=dev;Password=Tung123;Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=TUNGNS-PC)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID=ORCL)));";
            //strconn = "Data Source = ORCL; User Id = tungns; Password = Tung123";
            OracleConnection conn = new OracleConnection(strconn);
            return conn;
        }

    }
}